package com.medical.mapper;

import com.medical.pojo.ApplyForHome;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ApplyForHomeMapper {
    @Select("select * from apply_for_home")
    List<ApplyForHome> findAll();

    @Select("select * from apply_for_home where id = #{id}")
    ApplyForHome findById(Integer id);

    @Update("update apply_for_home set apply_status = '已通过' where id = #{id}")
    void updateStatus(Integer id);
}
